﻿
using System;
using System.Collections.Generic;
using System.Drawing;
namespace HuaCheng.Model
{
    /// <summary>
    /// 显示主通道信息
    /// </summary>
    /// 
    [Serializable]
    public class Channel
    {
        //设备号
        public string DevIp { get; set; }
        //柜号
        public int Gid { get; set; }
        //中位机号
        public int Mid { get; set; }
        //映射通道号
        public int Cid { get; set; }
        //实际通道号
        public int RealId { get; set; }
        //显示通道号
        public string ChId{ get ; set ; }
        //工步序号
        public int StepId { get; set; }
        //循环序号
        public string IterId { get; set; }
        //工步时间
        public string StepTime { get; set; }
        //电压
        public float Voltage { get; set; }
        //电流
        public float Current { get; set; }
        //充电容量
        public float Capacity { get; set; }
        //充电能量
        public float Energy { get; set; }
        //停止状态
        public bool StopStat { get; set; }
        //锁定状态
        public bool LockedStat { get; set; }
        //运行状态
        public bool RunStat { get; set; }
        //电池条码
        public string Batcode { get; set; }
        //正在测试条码
        public string CurBatcode { get; set; }
        public enum runningState
        {   
            Finish,        
            Charge,
            DisCharge,
            Shelve,          
            Protect,
            Stop,
            Pause,     
        };
        //运行状态值
        public runningState ChlState { get; set; }
        //颜色
        public Color ucColor { get; set; }
        //工步名称
        public string ChlStepName { get; set; }
        //显示通道映射标题 如1-1 1-2
        public string Title { get;set; }
        //辅助通道
        public List<AuxChannel> auxChannel { get; set; }
        //正在设置并联通道
        public bool isSetParallel { get; set; }
        //正在解除并联通道
        public bool isReleaseParallel { get; set; }

    }
}
